﻿using System.Web.Mvc;

namespace Yz.Web.Areas.Backstage
{
    public class BackstageAreaRegistration : AreaRegistration
    {
        public override string AreaName => "Backstage";

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Backstage_default",
                "Backstage/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional },
                new string[] { "Yz.Web.Areas.Backstage.Controllers" }
            );
        }
    }
}